package com.garg.stats;

/**
 * Statistics of a stream of events
 */
public interface Statistics {

	/**
	 * Update the statistic with a new data point.
	 */
	void event(int value);

	/**
	 * Returns the mean.
	 */
	float mean();

	/**
	 * Returns the minimal.
	 */
	int minimum();

	/**
	 * Returns the maximal.
	 */
	int maximum();

	/**
	 * Returns an estimate of the variance of the total population given the
	 * received data points.
	 */
	float variance();
}
